package com.ruoyi.interfaced.service.impl;

import java.util.List;

import com.ruoyi.interfaced.domain.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.interfaced.mapper.ShopGoodsInterMapper;
import com.ruoyi.interfaced.service.IShopGoodsInterService;

/**
 * 产品列表Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-11-29
 */
@Service
public class ShopGoodsInterServiceImpl implements IShopGoodsInterService
{
    @Autowired
    private ShopGoodsInterMapper shopGoodsMapper;

    /**
     * 显示
     */
    public List<ShopGoodsInter> select(ShopGoodsInter shopGoods)
    {
        return shopGoodsMapper.select(shopGoods);
    }

    /**
     * 添加
     */
    public int quan(ShopGoodsInter shopGoods)
    {
        return shopGoodsMapper.quan(shopGoods);
    }

    public List<ShopUserInter> shopuser()
    {
        return shopGoodsMapper.shopuser();
    }

    /**
     * 修改
     */
    public int update(ShopGoodsInter shopGoods)
    {
        return shopGoodsMapper.update(shopGoods);
    }
    /**
     * 修改
     */
    public int delete(ShopGoodsInter shopGoods)
    {
        return shopGoodsMapper.delete(shopGoods);
    }

    /**
     * shopogoods
     */
    @Override
    public List<ShopGoodsInter> goods()
    {
        return shopGoodsMapper.goods();
    }

    /**
     * shoporproperty
     */
    @Override
    public List<ShopProperty> property()
    {
        return shopGoodsMapper.property();
    }

    /**
     * shoporderinfo
     */
    @Override
    public List<ShopOrderInfoInter> orderinfo()
    {
        return shopGoodsMapper.orderinfo();
    }

    /**
     * 显示栏目
     */
    @Override
    public List<ShopCommodityInter> commodity()
    {
        return shopGoodsMapper.commodity();
    }

    /**
     * 查询产品列表
     * 
     * @param id 产品列表主键
     * @return 产品列表
     */
    @Override
    public ShopGoodsInter selectShopGoodsById(Integer id)
    {
        return shopGoodsMapper.selectShopGoodsById(id);
    }

    /**
     * 查询产品列表列表
     * 
     * @param shopGoods 产品列表
     * @return 产品列表
     */
    @Override
    public List<ShopGoodsInter> selectShopGoodsList(ShopGoodsInter shopGoods)
    {
        return shopGoodsMapper.selectShopGoodsList(shopGoods);
    }

    /**
     * 新增产品列表
     * 
     * @param shopGoods 产品列表
     * @return 结果
     */
    @Override
    public int insertShopGoods(ShopGoodsInter shopGoods)
    {
        return shopGoodsMapper.insertShopGoods(shopGoods);
    }

    /**
     * 修改产品列表
     * 
     * @param shopGoods 产品列表
     * @return 结果
     */
    @Override
    public int updateShopGoods(ShopGoodsInter shopGoods)
    {
        return shopGoodsMapper.updateShopGoods(shopGoods);
    }

    /**
     * 批量删除产品列表
     * 
     * @param ids 需要删除的产品列表主键
     * @return 结果
     */
    @Override
    public int deleteShopGoodsByIds(Integer[] ids)
    {
        return shopGoodsMapper.deleteShopGoodsByIds(ids);
    }

    /**
     * 删除产品列表信息
     * 
     * @param id 产品列表主键
     * @return 结果
     */
    @Override
    public int deleteShopGoodsById(Integer id)
    {
        return shopGoodsMapper.deleteShopGoodsById(id);
    }
}
